num=7
class ztq:
    num=0

    def addnum(self):
        num=2
        print(num)

z=ztq()
print(z.num)
z.addnum()
print(z.num)
print(num)